public class test {
    public static void main(String[] args) {
        for (int i=1;i<=9;i++){
            for (int j=1;j<=i;j++){
                System.out.println(i+"*"+j+"="+(i*j));
            }
            System.out.println(" ");
        }
    }
    public static void main5(String[] args) {
        for (int i=0;i<=99999;i++){
            int count =0;
            int tmp=i;
            while(tmp!=0){
                count++;
                tmp/=10;
            }
            tmp=i;
            int sum=0;
            while(tmp!=0){
                sum += Math.pow(tmp%10,count);
                tmp/=10;
            }
            if(sum==i){
                System.out.println(i);
            }
        }
    }
    public static void main4(String[] args) {
        int count=0;
        for (int i=1;i<=100;i++){
            if (i%10==9){
                count++;
            }
            if(i/10==9){
                count++;
            }
        }
        System.out.println(count);
    }
    public static void main3(String[] args) {
        int i=0;
        for (i=2;i<=100;i++){
            boolean n= false;
            int j=0;
            for ( j=2;j<=i-1;j++){
                if(i%j==0){
                    System.out.println(i+"不是素数");
                    n=true;
                    break;
                }
                if(n==false){
                    System.out.println(i+"是素数" );
                }
            }
        }
    }
    public static void main2(String[] args) {
        int n=7;
        int i=2;
        for (;i<=Math.sqrt(n);i++){
            if(n%i==0){
                break;
            }
        }
        if(i>Math.sqrt(n)){
            System.out.println(n +"是素数");
        }
    }
    public static void main1(String [] args){
        System.out.println("Hello World");
        System.out.println("中文");
    }
}
